﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" 
	AutoEventWireup="true" 
	CodeFile="ListSchedules.aspx.cs" 
	Inherits="ListSchedules" 
	Title="Список расписаний" %>

<%@ Import Namespace="Progresoft.Scheduler.RemoteInterface.DataAccess" %>

<asp:Content ID="Content2" ContentPlaceHolderID="cphMain" Runat="Server">
<div class="timeTasks">
	<div class="schedulerHeader">
		<div>Список расписаний</div>
	</div>
	<div class="schedulerTable">
		<asp:ListView ID="listSchedules" runat="server" 
			ItemPlaceholderID="ItemPlaceHolder">
			<LayoutTemplate>
				<table cellpadding="0" cellspacing="2">
						<col style="width:auto;" />
						<col style="width:30%;" align="center" />
						<col style="width:20%;" align="center" />
						<col style="width:60px;" align="center" />
						<tr>
							<th>Время запуска</th>
							<th>Наименование</th>
							<th>Система</th>
							<th></th>
						</tr>
						<tr id="ItemPlaceHolder" runat="server"></tr>
					</table>
			</LayoutTemplate>
			<ItemTemplate>
				<tr>
					<td>&nbsp;<%# GetExecuteTime((TaskSchedule)Container.DataItem) %></td>
					<td>&nbsp;<%# Eval("Name")%></td>
					<td>&nbsp;<%# Eval("System.Name")%></td>
					<td>
						<asp:HyperLink ID="lnkLog" runat="server" ImageUrl="~/Images/scheduler/edit.gif" 
									ToolTip="Редактировать расписание"
									NavigateUrl='<%# string.Format("~/EditSchedule.aspx?schedule={0}&system={1}", Eval("ID"), Eval("System.Name")) %>' />
					</td>
				</tr>
			</ItemTemplate>
		</asp:ListView>
	</div>
</div>
</asp:Content>

